<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>订单结算详细信息</title>
<script type="text/javascript">
 //限制添加快捷内容的字数  
var maxLength =30; 
function MaxInput(fo,len) {
	if(len!=""){
		maxLength=len;
	}
	if (fo.value.length > maxLength) {
		alert("输入内容过多！");
		fo.value = fo.value.substring(0, maxLength);
	}
}
function doback(){
	document.all.operate.value = "";
	document.forms[0].submit();
}
</script>
</head>
<body>
<form action="<%=path %>/endgather.action" method="post">
<table width="760" border="0" cellpadding="0" cellspacing="0" >
  <tr>
     <td>
     <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="MainBody">
      <tr>
        <td class="MainBody_title"><hello:forValue type="title" /></td>
      </tr>
        <tr>
          <td width="720" valign="top"><input name="operate" type="hidden" value=""/><input  type="hidden" value="${sessionScope.admin_user.personid}"/>
          <div align="right" style="padding: 10 50 10 0;">
			<input type="button" class="btn" value="返 回" onclick="doback()"/>&nbsp;&nbsp;</div>
          <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
                <tr>
                  <td  colspan="8" class="bg_title">订 单 结 算 详 细 信 息</td>
                </tr>
                <tr>
                  <th width="12%" nowrap="nowrap">经手人</th>
                  <td width="16%" >${updinfo.createuser}</td>
                  <th width="12%" nowrap="nowrap">收款日期</th> 
                  <td width="16%">${updinfo.tpdate}</td>
                  <th width="12%" nowrap="nowrap">收款人</th>
                  <td width="30%" colspan="3">${updinfo.tpperson}</td>
                </tr>
                
                <tr>
                  <th nowrap="nowrap">应收金额</th> 
                  <td>${updinfo.tpmoney}/元</td>
                  <th nowrap="nowrap">付款方式</th>
                  <td>${updinfo.tpway}</td>
                  <th nowrap="nowrap">实收金额</th>
                  <td>${updinfo.realmoney}/元</td>
                  <th nowrap="nowrap" width="8%">欠款</th>
                  <td>${updinfo.tpmoney - updinfo.realmoney}/元</td>
                </tr>
                
                <tr>
                  <th nowrap="nowrap">发票金额</th>
                  <td >${updinfo.billmoney}/元</td>
                  <th nowrap="nowrap">发票类型</th> 
                  <td >${updinfo.billtype}</td>
                  <th nowrap="nowrap">发票编号</th>
                  <td colspan="3">${updinfo.bill}</td>
                </tr>
                
                <tr>
                  <th align="center" nowrap="nowrap" >备注信息</th> 
                  <td colspan="7"><textarea style="width: 100%;overflow: auto;text-align: left;" rows="5" readonly class="readinput">${updinfo.remark}</textarea></td>
                </tr>
            </table>
            </td></tr>
            <tr>
          <td valign="top">
            <div style="width:820;height: 300px;overflow: auto; ">
            <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
				<tr>
                  <td colspan="9" class="bg_title" nowrap="nowrap">客 户 订 单 信 息</td>
                </tr>
                <tr>
                  <th width="15%" nowrap="nowrap">订单编号</th>
                  <th width="20%" nowrap="nowrap">客户名称</th>
                  <th width="10%" nowrap="nowrap">其他联系人</th>
                  <th width="10%" nowrap="nowrap">下单人</th> 
                  <th width="12%" nowrap="nowrap">订单总金额</th>
                  <th width="12%" nowrap="nowrap">订单预付款</th>
                  <th width="12%" nowrap="nowrap">订单余款</th>
                  <th width="10%" nowrap="nowrap">订单状态</th>
                </tr>
                <c:forEach items="${orderlist}" varStatus="status" var="rows">
                <tr>
					<td nowrap="nowrap">${rows.orderId}</td>
					<td nowrap="nowrap">${rows.clientname}</td>
					<td nowrap="nowrap">${rows.otherClient}</td>
					<td nowrap="nowrap">${rows.creator}</td>
					<td nowrap="nowrap">${rows.total}</td>
					<td nowrap="nowrap">${rows.frontCash}</td>
					<td nowrap="nowrap">${rows.debtCash}</td>
					<td nowrap="nowrap">${rows.status}</td>
                </tr>
                </c:forEach>
                <c:if test="${empty orderlist}">
					<tr>
						<td colspan="9" align="center">暂时没有您可以浏览的数据</td>
					</tr>
				</c:if>
            </table>
            </div>
		</td>
	</tr>
</table></td></tr></table>
</form>
</body>
</html>